-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/filter setcode tx #8167
Conversation
protected override IComparer<Transaction> GetGroupComparer(IComparer<Transaction> comparer) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
protected override UInt256 GetKey(Transaction value) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
protected override IComparer<Transaction> GetUniqueComparer(IComparer<Transaction> comparer) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
protected override AddressAsKey MapToGroup(Transaction value) | ||
{ | ||
throw new NotImplementedException(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this ok to leave like that? Aren’t those required?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought i had deleted this. Will remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is abstract, I thought those were kind of mandatory?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant the whole class. I had a more complex solution before, until I figured the current solution would be simpler. So this is no longer used at all.
src/Nethermind/Nethermind.TxPool/Filters/OnlyOneTxPerDelegatedAccountFilter.cs
Outdated
Show resolved
Hide resolved
…AccountFilter.cs Co-authored-by: Lukasz Rozmej <[email protected]>
…mindEth/nethermind into feature/filter-setcode-tx
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Just a few minor nitpicks, mostly naming
src/Nethermind/Nethermind.TxPool/Filters/OnlyOneTxPerDelegatedAccountFilter.cs
Outdated
Show resolved
Hide resolved
src/Nethermind/Nethermind.TxPool.Test/OnlyOneTxPerDelegatedAccountFilterTest.cs
Outdated
Show resolved
Hide resolved
src/Nethermind/Nethermind.TxPool/Filters/OnlyOneTxPerDelegatedAccountFilter.cs
Outdated
Show resolved
Hide resolved
src/Nethermind/Nethermind.TxPool.Test/OnlyOneTxPerDelegatedAccountFilterTest.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Lukasz Rozmej <[email protected]>
Changes for
OnlyOneTxPerDelegatedAccountFilter
to align with ethereum/go-ethereum#31073Filter now also restricts
SetCode
tx that has any delegation authority with a pending tx."Only one tx for delegated account" rule, is simplified to only accept a tx from delegated account if the nonce matches current account state.
Things to note: